﻿<controls:ChildWindow x:Class="SLWebApp.ChildWindows.ChildWindow_VesselBerthes"
                       xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
                       xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="660" Height="200" Closing="ChildWindow_Closing"
           Title="新增/修改靠泊信息：" FontFamily="Trebuchet MS" FontSize="12">
    <toolkit:BusyIndicator x:Name="progressbar" IsBusy="False" >
        <Grid x:Name="LayoutRoot" Margin="2">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <StackPanel>
                <Border BorderThickness="1" Height="30" BorderBrush="#b4b4b4" CornerRadius="1" >
                    <Border.Background>
                        <ImageBrush ImageSource="/SLWebApp;component/img/operate_box_bg.png" />
                    </Border.Background>
                    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" >
                        <TextBlock Text="操作：" Padding="10,6" Height="30" Width="50"/>
                        <Image Width="16" Height="16" Source="/SLWebApp;component/img/icon_save.png"></Image>
                        <TextBlock x:Name="btnSave" MouseLeftButtonDown="btnSave_MouseLeftButtonDown"  Padding="3,6" Cursor="Hand">保存</TextBlock>
                    </StackPanel>
                </Border>

                <Border BorderThickness="0" Height="5" >
                </Border>
                <!-- 靠泊表格内容-->
                <Border BorderThickness="1" BorderBrush="#b4b4b4" CornerRadius="1" >
                    <Grid>
                        <Grid.RowDefinitions >
                            <RowDefinition Height="30" />
                            <RowDefinition Height="30" />
                            <RowDefinition Height="30" />
                            <RowDefinition Height="30" />
                        </Grid.RowDefinitions >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="Auto" />
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition  Width="110" />
                            <ColumnDefinition Width="110"/>
                            <ColumnDefinition Width="110" />
                            <ColumnDefinition Width="110"/>
                            
                        </Grid.ColumnDefinitions>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" >预靠码头：</TextBlock>
                        <ComboBox x:Name="comboxTerminal" Grid.Row="0" Grid.Column="1" Height="22">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Path=CST_CSTM}" />
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="0" Grid.Column="2"  HorizontalAlignment="Right">装卸标志：</TextBlock>
                        <ComboBox x:Name="comboxLDUNLDFG" Grid.Row="0" Grid.Column="3" Height="22" >
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Path=RV_LOW_VALUE}" />
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>

                        <TextBlock Padding="3,3" Height="22" Grid.Row="1" Grid.Column="0"  HorizontalAlignment="Right">抵港前吃水：</TextBlock>
                        <TextBox x:Name="txtArriveF" Height="22" Grid.Row="1" Grid.Column="1" Text="" />

                        <TextBlock Padding="3,3" Height="22" Grid.Row="1" Grid.Column="2"  HorizontalAlignment="Right">抵港平吃水：</TextBlock>
                        <TextBox x:Name="txtArriveM" Height="22" Grid.Row="1" Grid.Column="3" Text="" />

                        <TextBlock Padding="3,3" Height="22" Grid.Row="1" Grid.Column="4"  HorizontalAlignment="Right">抵港后吃水：</TextBlock>
                        <TextBox x:Name="txtArriveL" Height="22" Grid.Row="1" Grid.Column="5" Text="" />

                        <TextBlock Padding="3,3" Height="22" Grid.Row="2" Grid.Column="0"  HorizontalAlignment="Right">离港前吃水：</TextBlock>
                        <TextBox x:Name="txtLeaveF" Height="22" Grid.Row="2" Grid.Column="1" Text="" />

                        <TextBlock Padding="3,3" Height="22" Grid.Row="2" Grid.Column="2"  HorizontalAlignment="Right">离港平吃水：</TextBlock>
                        <TextBox x:Name="txtLeaveM" Height="22" Grid.Row="2" Grid.Column="3" Text="" />

                        <TextBlock Padding="3,3" Height="22" Grid.Row="2" Grid.Column="4"  HorizontalAlignment="Right">离港后吃水：</TextBlock>
                        <TextBox x:Name="txtLeaveL"  Height="22" Grid.Row="2" Grid.Column="5"/>
                        <TextBlock Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="4" Padding="5" FontWeight="Black" Text="备注：以上6项吃水指标的单位均为“米”。" />
                    </Grid>
                </Border>
            </StackPanel>
        </Grid>
    </toolkit:BusyIndicator>
</controls:ChildWindow>